package com.mv.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("deal")
public class Deal extends BasePojo{
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String cardId;
    private Integer transaction;
    private Double moneyChange;
    private Integer integralChange;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date dealTime;
    @TableField(exist = false)
    private Integer num;
    @TableField(exist = false)
    private String movieName;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private Consume consume;
    @TableField(exist = false)
    private Recharge recharge;
}
